<?xml version='1.0' encoding='UTF-8' ?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                xmlns:h="http://java.sun.com/jsf/html"
                template="/WEB-INF/templates/default.xhtml">

    <ui:define name="content">
        <f:metadata>
            <f:viewParam name="id" value="#{storeId}" />
            <f:event type="preRenderView" listener="#{deliveryManager.loadDelivery(storeId)}" />
        </f:metadata>
        <h:outputText value="#{msg['sure']} id: #{delivery.id}?" />
        <h:form>
            <h:button class="btn" outcome="/pages/admin/delivery" value="#{msg['form.back']}"/>
            <h:commandButton class="btn" action="#{deliveryManager.deleteDelivery}" value="OK" />
        </h:form>
    </ui:define>
</ui:composition>

